import request from '@/utils/request'

// 查询记录充电列表
export function listCharging(query) {
  return request({
    url: '/system/charging/list',
    method: 'get',
    params: query
  })
}

// 查询记录充电详细
export function getCharging(rcId) {
  return request({
    url: '/system/charging/' + rcId,
    method: 'get'
  })
}

// 新增记录充电
export function addCharging(data) {
  return request({
    url: '/system/charging',
    method: 'post',
    data: data
  })
}

// 修改记录充电
export function updateCharging(data) {
  return request({
    url: '/system/charging',
    method: 'put',
    data: data
  })
}

// 删除记录充电
export function delCharging(rcId) {
  return request({
    url: '/system/charging/' + rcId,
    method: 'delete'
  })
}
